﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DiveManager.Benutzerverwaltung
{
    public partial class PasswordResetForm : Form
    {
        public string NewPass { get; set; }

        public PasswordResetForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (tbNewPass.Text == tbRepeatPass.Text)
            {
                NewPass = tbNewPass.Text;
                this.Close();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Passwörter stimmen nicht überein!",
                                                           "Fehler!",
                                                           MessageBoxButtons.OK,
                                                           MessageBoxIcon.Error);                
            }
        }
    }
}
